﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.tremormedia.acudeo.ad.enums {
    import flash.utils.*;
    import flash.errors.*;

    public class AdType {

        private var _value:String;

        public static const OVERLAY:AdType = new AdType(EnumRestrictor, "overlay");
;
        public static const ENDCAP:AdType = new AdType(EnumRestrictor, "endcap");
;
        public static const VIDEO:AdType = new AdType(EnumRestrictor, "video");
;

        public function AdType(_arg1:Class, _arg2:String){
            if (_arg1 !== EnumRestrictor){
                throw (new IllegalOperationError("Invalid constructor access"));
            };
            _value = _arg2;
        }
        public function toString():String{
            return (_value);
        }

        public static function valueOf(_arg1:String):AdType{
            var _local3:XML;
            var _local2:XML = describeType(AdType);
            for each (_local3 in _local2.constant) {
                if (_arg1 == AdType[_local3.@name]){
                    return (AdType[_local3.@name]);
                };
            };
            return (new AdType(EnumRestrictor, _arg1));
        }

    }
}//package com.tremormedia.acudeo.ad.enums 

class EnumRestrictor {

    private function EnumRestrictor(){
    }
}
